<div class="row-fluid backlink">
    <ul class="unstyled">
        <li><a href="<?php echo DOMAIN;?>" title="Trang chủ">Trang chủ</a>&nbsp;&nbsp;&nbsp;<i class="fa fa-angle-right"></i>&nbsp;&nbsp;&nbsp;</li>
        <li>
            <?php if(empty($backlink)){?>
            
            <?php 
                $catdb = 'Catproduct';
                if(!empty($new)) $catdb = 'Catalogue';
            ?>
            <a href="<?php echo DOMAIN.$cat[$catdb]['link'];?>" title="<?php echo $cat[$catdb]['name'];?>">
                <?php if(!empty($detail)){?>
                    <?php echo $cat[$catdb]['name'];?>
                <?php }else{?>
                    <h1><?php echo $cat[$catdb]['name'];?></h1>
                <?php }?>
            </a><?php if(!empty($detail)) echo '&nbsp;&nbsp;&nbsp;<i class="fa fa-angle-right"></i>&nbsp;&nbsp;&nbsp;';?>
            <?php } else echo $backlink;?>
        </li>
        <?php if(!empty($detail)){?>
        <li>
            <?php 
                $postdb = 'Product';
                $link = null;
                if(!empty($new)){$catdb = 'News'; $link = 'detail/';}
            ?>
            <a href="<?php echo DOMAIN.$link.$detail[$postdb]['link'];?>.html" title="<?php echo $detail[$postdb]['name'];?>">
                <h1><?php echo $detail[$postdb]['name'];?></h1>
            </a>
        </li>
        <?php }?>
    </ul>
    <div class="clear-main"></div>
</div>